// 导入request.js请求工具
import request from '@/utils/request.js'
// 获取购物车列表
export const getShoppingListApi = () => {
    return request.get('/shoppingCart/list')
}
// 购物车中增加商品
export const addCartApi = (data) => {
    return request.post('/shoppingCart/add',data)
}
// 购物车中减少商品
export const updateCartApi = (data) => {
    return request.post('/shoppingCart/sub',data)
}
// 删除购物车的商品
export const clearCartApi = () => {
    return request.delete('/shoppingCart/clean')
}
// 获取空闲餐位
export const getSeatsListApi = () => {
    return request.get('/seats/list')
}

export const submitOrderApi = (data) => {
    return request.post('/order/submit',data)
}